<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>解绑银行卡</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="../../css/public-heder-Reset.css">
	<link rel="stylesheet" href="../../css/input-button.css">
</head>
<body>
	<!-- page_box -->
	<div class="page-box">
		<!-- header -->
		<header class="page-header">
			<a href="javascript:history.go(-1)" class="back"></a>
			<p class="pege-name">解绑银行卡</p>
		</header>
		<div class="liubai"></div>
		<!-- header /-->
		<!-- User-information -->
		<div class="User-information">
			<div class="User-form">
				<div class="phone-number">
					<label>
						<input type="tel" class="reewrw eliminate" style="font-size:17px" placeholder="请输入验证码" maxlength="8">
						<span class="phone"></span>
						<em class="phone-code">获取验证码</em>
					</label>
				</div>
			</div>	
			<div class="submit-btn">
				<button style="border:none" disabled="disabled">确认解绑</button>
			</div>
		</div>
		<!-- User-information / -->
	</div>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/http-url.js"></script>
<script type="text/javascript">
	$(function(){
		$('.phone-code').click(function() {
			if(isClick){
				return ;
			}
			$('.phone-code').css({"color":"#ccc","borderColor":"#ccc"});
			// 	//调用定时函数 设定剩余时间  名字 提示字符串 原本字符串 改变颜色
			timer(60,".phone-code","秒后失效","获取验证码","#6eba6f")
			ajaxRequest('/api/user/ub/card',false,function(data){
				isClick=true;
			},false);
		});	
		$(".reewrw").on("keyup", function (event){
			var reewrw=$('.reewrw').val().trim();
			if(reewrw.length>=6){
				sureSubmit()
			}else {
				cannotSubmit()
			}
		});
		$('.submit-btn').find('button').click(function(){
			submitOk()
			var code=$('.reewrw').val().trim();
			var UserData={'code':code}
			ajaxRequest('/api/user/ub/card/do/'+code+'',null,function(data){
				isClick=null;
			},false);
		});
	});
</script>
</body>
</html>